package com.hzncc.flowable_diboot.delivery.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;


import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 发货信息 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-10-08
* Copyright © MyCorp
*/

@TableName("mdl_delivery_info")
@Getter @Setter @Accessors(chain = true)
public class DeliveryInfo extends BaseModel {
    private static final long serialVersionUID = 1435341071163673234L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 发货单号
     */
    @Length(max=100, message="发货单号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String deliveryCode;

    /**
     * 发货情况
     */
    @TableField()
    private String deliverySituation;

    /**
     * 实际发货日期
     */
    @TableField()
    private LocalDateTime deliveryTime;

    /**
     * 计划发货日期
     */
    @TableField()
    private LocalDateTime planDeliveryTime;

    /**
     * 发货是否延迟
     */
    @Length(max=100, message="发货是否延迟长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String delaied;

    /**
     * 发货延迟天数
     */
    @Length(max=100, message="发货延迟天数长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String delayDays;

    /**
     * 运输公司
     */
    @Length(max=100, message="运输公司长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String transitCompany;

    /**
     * 件数
     */
    @TableField()
    private Long quantity;

    /**
     * 重量
     */
    @TableField()
    private BigDecimal weight;

    /**
     * 成套性发货
     */
    @TableField()
    private String completeSet;

    /**
     * 货单号
     */
    @Length(max=100, message="货单号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String billCode;

    /**
     * 收货人
     */
    @Length(max=100, message="收货人长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String consigneeName;

    /**
     * 备注
     */
    @Length(max=100, message="备注长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String remark;


}